import axios from "axios"
const promise = {
  namespaced: true,
  state: {
    data:{
      i_d:'',
      name:'',
      promise:'',
      isOtherDepartment:false
    },
    accept:{
      id:''
    }
  },
  // actions: {
  //   changeprmise (e) {
  //       ctx.commit('changeprmise',city)
  //   }
  // },
  mutations: {
    changeprmise (state,data){
      state.data.i_d=data.i_d
      state.data.name=data.name
      state.data.promise=data.promise
      state.data.declarantType=data.declarantType
      state.data.getCode=data.getCode,
      state.data.isOtherDepartment=data.isOtherDepartment
    },
    changeAccept(state,e){
      state.accept.id=e
    }
  },
  // actions: {
  //   getUserInfo({
  //     commit
  //   }) {
  //     // axios.get("/admin/getUserInfo").then(res => {
  //     //   commit(res)
  //     // })
  //     console.log("执行了user中的actions")
  //   }
  // },
};

export default promise;
